/*
 * QColorAdapter.h  0.4.0 / Nov 17, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
#ifndef QCOLORADAPTER_H
#define QCOLORADAPTER_H

#include "Cute4jCore.h"

#include <QColor>

// QColorAdapter Class. --------------------------------------------------------

/*!
 * \brief QColor Adapter.
 *
 * \author Slobodan Vrkacevic
 * \version 0.4.0
 */
class CUTE4J_EXPORT QColorAdapter : public QColor
{
public:
  QColorAdapter(jobject color);
  QColorAdapter(jint argb);
public:
  static void initialize(JNIEnv *env, jclass cls);
  static jobject toJColor(JNIEnv *env, jclass colorClass, const QColor &color);
  static jobject toJColor(const QColor &color);
private:
  static jclass sm_colorClass;
  static jmethodID sm_constructorMID;
  static jmethodID sm_getARGBMID;
};

#endif //QCOLORADAPTER_H
